package org.zephyr.project.orm;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
import org.zephyr.orm.spring.mapper.ClassPathMapperScanner;
import org.zephyr.project.orm.mapper.OrderDataMapper;
import org.zephyr.project.orm.mapper.OrderDataPO;

@SpringBootApplication
//@ImportResource("classpath:app-config.xml")
public class PlandosApplication implements CommandLineRunner {
    @Autowired
    private OrderDataMapper orderDataMapper;

    public static void main(String[] args) {
        SpringApplication.run(PlandosApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        OrderDataPO orderDataPO = orderDataMapper.selectByOrderId(1);
        System.out.println(orderDataPO);
    }
}
